package carcassonne.utils;

import io.netty.buffer.Unpooled;
import io.netty.handler.codec.base64.Base64;

import java.nio.charset.StandardCharsets;

public class CryptUtils {

    public static String Base64Format(String s) {
        return Base64.encode(Unpooled.wrappedBuffer(s.getBytes(StandardCharsets.UTF_8)))
                .toString(StandardCharsets.UTF_8).replaceAll("[\r\n]", "");
    }
}
